package edu.ptu.acl.common;


import edu.ptu.acl.entity.User;

public class RequestHolder {

    private static final ThreadLocal<User> userHolder = new ThreadLocal<User>();

    public static void add(User sysUser) {
        userHolder.set(sysUser);
    }

    public static User getCurrentUser() {
        return userHolder.get();
    }

    public static void remove() {
        userHolder.remove();
    }
}
